<template>
  <!-- eslint-disable vue/html-indent -->
  <!-- eslint-disable vue/html-self-closing -->
  <!-- eslint-disable vue/html-closing-bracket-newline -->
  <el-card class="box-card">
    <div class="search-header">
      <span>线上热门搜索</span>
      <el-dropdown>
        <span>
          <i class="el-icon-more"></i>
        </span>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item>黄金糕</el-dropdown-item>
          <el-dropdown-item>狮子头</el-dropdown-item>
          <el-dropdown-item>螺蛳粉</el-dropdown-item>
          <el-dropdown-item>双皮奶</el-dropdown-item>
          <el-dropdown-item>蚵仔煎</el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
    </div>
    <div>
      <el-row :gutter="5">
        <el-col :span="12">
          <LineCharts></LineCharts>
        </el-col>
        <el-col :span="12">
          <LineCharts></LineCharts>
        </el-col>
      </el-row>
    </div>
    <el-table border :data="tableData" style="width: 100%">
      <el-table-column label="排名" width="80" type="index"> </el-table-column>
      <el-table-column label="搜索关键字"> </el-table-column>
      <el-table-column label="用户数" sortable> </el-table-column>
      <el-table-column label="周涨幅" sortable></el-table-column>
    </el-table>
    <el-pagination
      style="text-align: center"
      layout="prev, pager, next"
      :total="1000"
    >
    </el-pagination>
  </el-card>
</template>

<script>
/* eslint-disable spaced-comment */
/* eslint-disable eqeqeq */
/* eslint-disable comma-dangle */
/* eslint-disable quotes */
/* eslint-disable semi */
import LineCharts from "./LineCharts";
export default {
  name: "Search",
  components: {
    LineCharts,
  },
  data() {
    return {
      tableData: [],
    };
  },
};
</script>

<style lang="less" scoped>
.search-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  height: 25px;
  margin-bottom: 10px;

  & > i {
    cursor: pointer;
  }
}
</style>
